export interface RoleItem {
  id: string
  name: string
  code: string
  note?: string
  permId: string
  permName: string
}

export interface GetRoleListReq {
  key?: string
  size: number
  current: number
}

export type AddRoleReq = Omit<RoleItem, 'id'>

export interface EditRoleReq extends Partial<RoleItem> {
  id: string
}

export interface DeleteRoleReq {
  ids: string[]
}

export interface UpdateRolePermReq {
  /** 角色id */
  id: string
  /** 绑定后该角色拥有的id */
  permIds: string[]
}
